<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>乡土味士 - 后台管理中心 - 管理员列表</title>
    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <!-- Data Tables -->
    <link href="__PUBLIC__/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
                <div class="ibox-content">
                    <table class="table table-striped table-bordered table-hover dataTables-example">
                        <thead>
                            <tr>
                                <th>序号</th>
                                <th>管理员</th>
                                <th>密码</th>
                                <th>上次登录时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <volist name="list" id="vo">
                            <tr class="gradeX">
                                <td>{$vo.id}</td>
                                <td>{$vo.uname}</td>
                                <td>*******</td>
                                <td class="center">{$vo['logintime']|date="Y-m-d H:i",###}</td>
                                <td>
                                    <a href="#" style="padding:0 3px;" title="编辑">编辑
                                        <i class="glyphicon glyphicon-pencil"></i>
                                    </a>
                                    <a href="javascript:;" style="padding:0 3px;" class="js_del" data-id="{$vo.id}" title="删除">删除
                                        <i class="glyphicon glyphicon-trash"></i>
                                    </a>
                                </td>
                            </tr>
                            </volist>
                        </tbody>
                        <tfoot>
                            <tr>
                                <th>序号</th>
                                <th>管理员</th>
                                <th>密码</th>
                                <th>上次登录时间</th>
                                <th>操作</th>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="__PUBLIC__/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/js/plugins/jeditable/jquery.jeditable.js"></script>
<script src="__PUBLIC__/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="__PUBLIC__/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script src="__PUBLIC__/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>

<script>
    $(document).ready(function(){
        $(".dataTables-example").dataTable();
        var oTable=$("#editable").dataTable();
        oTable.$("td").editable("http:///theme/example_ajax.php",{
            "callback":function(sValue,y){
                var aPos=oTable.fnGetPosition(this);
                oTable.fnUpdate(sValue,aPos[0],aPos[1])},
                "submitdata":function(value,settings){
                    return{"row_id":this.parentNode.getAttribute("id"),"column":oTable.fnGetPosition(this)[2]}},"width":"90%","height":"100%"
        })
    });

    //删除
    $(document).on('click','.js_del',function(){
        var id = $(this).attr('data-id');
        var i = layer.load();
        var this_a = $(this);
        $.post('<?=U("XtwsUser/del")?>',{id:id},function(e){
            layer.close(i);
            if(e.status==1){
                this_a.parent().parent(".gradeX").remove();
            }else{
                layer.msg(e.msg,{icon:2});
            }
        });
    })


</script>

</body>


<!-- Mirrored from /theme/hplus/table_jqgrid.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:02 GMT -->
</html>
